<?php


abstract class BaseUchomeSpace extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $uid;


	
	protected $groupid;


	
	protected $credit;


	
	protected $username;


	
	protected $name;


	
	protected $namestatus;


	
	protected $domain;


	
	protected $viewnum;


	
	protected $notenum;


	
	protected $friendnum;


	
	protected $dateline;


	
	protected $updatetime;


	
	protected $lastsearch;


	
	protected $lastpost;


	
	protected $lastlogin;


	
	protected $lastsend;


	
	protected $attachsize;


	
	protected $addsize;


	
	protected $flag;


	
	protected $newpm;


	
	protected $avatar;


	
	protected $ip;


	
	protected $mood;

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getUid()
	{

		return $this->uid;
	}

	
	public function getGroupid()
	{

		return $this->groupid;
	}

	
	public function getCredit()
	{

		return $this->credit;
	}

	
	public function getUsername()
	{

		return $this->username;
	}

	
	public function getName()
	{

		return $this->name;
	}

	
	public function getNamestatus()
	{

		return $this->namestatus;
	}

	
	public function getDomain()
	{

		return $this->domain;
	}

	
	public function getViewnum()
	{

		return $this->viewnum;
	}

	
	public function getNotenum()
	{

		return $this->notenum;
	}

	
	public function getFriendnum()
	{

		return $this->friendnum;
	}

	
	public function getDateline()
	{

		return $this->dateline;
	}

	
	public function getUpdatetime()
	{

		return $this->updatetime;
	}

	
	public function getLastsearch()
	{

		return $this->lastsearch;
	}

	
	public function getLastpost()
	{

		return $this->lastpost;
	}

	
	public function getLastlogin()
	{

		return $this->lastlogin;
	}

	
	public function getLastsend()
	{

		return $this->lastsend;
	}

	
	public function getAttachsize()
	{

		return $this->attachsize;
	}

	
	public function getAddsize()
	{

		return $this->addsize;
	}

	
	public function getFlag()
	{

		return $this->flag;
	}

	
	public function getNewpm()
	{

		return $this->newpm;
	}

	
	public function getAvatar()
	{

		return $this->avatar;
	}

	
	public function getIp()
	{

		return $this->ip;
	}

	
	public function getMood()
	{

		return $this->mood;
	}

	
	public function setUid($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->uid !== $v) {
			$this->uid = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::UID;
		}

	} 
	
	public function setGroupid($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->groupid !== $v) {
			$this->groupid = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::GROUPID;
		}

	} 
	
	public function setCredit($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->credit !== $v) {
			$this->credit = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::CREDIT;
		}

	} 
	
	public function setUsername($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->username !== $v) {
			$this->username = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::USERNAME;
		}

	} 
	
	public function setName($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->name !== $v) {
			$this->name = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::NAME;
		}

	} 
	
	public function setNamestatus($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->namestatus !== $v) {
			$this->namestatus = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::NAMESTATUS;
		}

	} 
	
	public function setDomain($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->domain !== $v) {
			$this->domain = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::DOMAIN;
		}

	} 
	
	public function setViewnum($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->viewnum !== $v) {
			$this->viewnum = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::VIEWNUM;
		}

	} 
	
	public function setNotenum($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->notenum !== $v) {
			$this->notenum = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::NOTENUM;
		}

	} 
	
	public function setFriendnum($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->friendnum !== $v) {
			$this->friendnum = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::FRIENDNUM;
		}

	} 
	
	public function setDateline($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->dateline !== $v) {
			$this->dateline = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::DATELINE;
		}

	} 
	
	public function setUpdatetime($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->updatetime !== $v) {
			$this->updatetime = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::UPDATETIME;
		}

	} 
	
	public function setLastsearch($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->lastsearch !== $v) {
			$this->lastsearch = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::LASTSEARCH;
		}

	} 
	
	public function setLastpost($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->lastpost !== $v) {
			$this->lastpost = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::LASTPOST;
		}

	} 
	
	public function setLastlogin($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->lastlogin !== $v) {
			$this->lastlogin = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::LASTLOGIN;
		}

	} 
	
	public function setLastsend($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->lastsend !== $v) {
			$this->lastsend = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::LASTSEND;
		}

	} 
	
	public function setAttachsize($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->attachsize !== $v) {
			$this->attachsize = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::ATTACHSIZE;
		}

	} 
	
	public function setAddsize($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->addsize !== $v) {
			$this->addsize = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::ADDSIZE;
		}

	} 
	
	public function setFlag($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->flag !== $v) {
			$this->flag = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::FLAG;
		}

	} 
	
	public function setNewpm($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->newpm !== $v) {
			$this->newpm = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::NEWPM;
		}

	} 
	
	public function setAvatar($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->avatar !== $v) {
			$this->avatar = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::AVATAR;
		}

	} 
	
	public function setIp($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->ip !== $v) {
			$this->ip = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::IP;
		}

	} 
	
	public function setMood($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->mood !== $v) {
			$this->mood = $v;
			$this->modifiedColumns[] = UchomeSpacePeer::MOOD;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->uid = $rs->getInt($startcol + 0);

			$this->groupid = $rs->getInt($startcol + 1);

			$this->credit = $rs->getInt($startcol + 2);

			$this->username = $rs->getString($startcol + 3);

			$this->name = $rs->getString($startcol + 4);

			$this->namestatus = $rs->getInt($startcol + 5);

			$this->domain = $rs->getString($startcol + 6);

			$this->viewnum = $rs->getInt($startcol + 7);

			$this->notenum = $rs->getInt($startcol + 8);

			$this->friendnum = $rs->getInt($startcol + 9);

			$this->dateline = $rs->getInt($startcol + 10);

			$this->updatetime = $rs->getInt($startcol + 11);

			$this->lastsearch = $rs->getInt($startcol + 12);

			$this->lastpost = $rs->getInt($startcol + 13);

			$this->lastlogin = $rs->getInt($startcol + 14);

			$this->lastsend = $rs->getInt($startcol + 15);

			$this->attachsize = $rs->getInt($startcol + 16);

			$this->addsize = $rs->getInt($startcol + 17);

			$this->flag = $rs->getInt($startcol + 18);

			$this->newpm = $rs->getInt($startcol + 19);

			$this->avatar = $rs->getInt($startcol + 20);

			$this->ip = $rs->getInt($startcol + 21);

			$this->mood = $rs->getInt($startcol + 22);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 23; 
		} catch (Exception $e) {
			throw new PropelException("Error populating UchomeSpace object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(UchomeSpacePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			UchomeSpacePeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(UchomeSpacePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = UchomeSpacePeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setUid($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += UchomeSpacePeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = UchomeSpacePeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = UchomeSpacePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getUid();
				break;
			case 1:
				return $this->getGroupid();
				break;
			case 2:
				return $this->getCredit();
				break;
			case 3:
				return $this->getUsername();
				break;
			case 4:
				return $this->getName();
				break;
			case 5:
				return $this->getNamestatus();
				break;
			case 6:
				return $this->getDomain();
				break;
			case 7:
				return $this->getViewnum();
				break;
			case 8:
				return $this->getNotenum();
				break;
			case 9:
				return $this->getFriendnum();
				break;
			case 10:
				return $this->getDateline();
				break;
			case 11:
				return $this->getUpdatetime();
				break;
			case 12:
				return $this->getLastsearch();
				break;
			case 13:
				return $this->getLastpost();
				break;
			case 14:
				return $this->getLastlogin();
				break;
			case 15:
				return $this->getLastsend();
				break;
			case 16:
				return $this->getAttachsize();
				break;
			case 17:
				return $this->getAddsize();
				break;
			case 18:
				return $this->getFlag();
				break;
			case 19:
				return $this->getNewpm();
				break;
			case 20:
				return $this->getAvatar();
				break;
			case 21:
				return $this->getIp();
				break;
			case 22:
				return $this->getMood();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = UchomeSpacePeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getUid(),
			$keys[1] => $this->getGroupid(),
			$keys[2] => $this->getCredit(),
			$keys[3] => $this->getUsername(),
			$keys[4] => $this->getName(),
			$keys[5] => $this->getNamestatus(),
			$keys[6] => $this->getDomain(),
			$keys[7] => $this->getViewnum(),
			$keys[8] => $this->getNotenum(),
			$keys[9] => $this->getFriendnum(),
			$keys[10] => $this->getDateline(),
			$keys[11] => $this->getUpdatetime(),
			$keys[12] => $this->getLastsearch(),
			$keys[13] => $this->getLastpost(),
			$keys[14] => $this->getLastlogin(),
			$keys[15] => $this->getLastsend(),
			$keys[16] => $this->getAttachsize(),
			$keys[17] => $this->getAddsize(),
			$keys[18] => $this->getFlag(),
			$keys[19] => $this->getNewpm(),
			$keys[20] => $this->getAvatar(),
			$keys[21] => $this->getIp(),
			$keys[22] => $this->getMood(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = UchomeSpacePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setUid($value);
				break;
			case 1:
				$this->setGroupid($value);
				break;
			case 2:
				$this->setCredit($value);
				break;
			case 3:
				$this->setUsername($value);
				break;
			case 4:
				$this->setName($value);
				break;
			case 5:
				$this->setNamestatus($value);
				break;
			case 6:
				$this->setDomain($value);
				break;
			case 7:
				$this->setViewnum($value);
				break;
			case 8:
				$this->setNotenum($value);
				break;
			case 9:
				$this->setFriendnum($value);
				break;
			case 10:
				$this->setDateline($value);
				break;
			case 11:
				$this->setUpdatetime($value);
				break;
			case 12:
				$this->setLastsearch($value);
				break;
			case 13:
				$this->setLastpost($value);
				break;
			case 14:
				$this->setLastlogin($value);
				break;
			case 15:
				$this->setLastsend($value);
				break;
			case 16:
				$this->setAttachsize($value);
				break;
			case 17:
				$this->setAddsize($value);
				break;
			case 18:
				$this->setFlag($value);
				break;
			case 19:
				$this->setNewpm($value);
				break;
			case 20:
				$this->setAvatar($value);
				break;
			case 21:
				$this->setIp($value);
				break;
			case 22:
				$this->setMood($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = UchomeSpacePeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setUid($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setGroupid($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setCredit($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setUsername($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setName($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setNamestatus($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setDomain($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setViewnum($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setNotenum($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setFriendnum($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setDateline($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setUpdatetime($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setLastsearch($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setLastpost($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setLastlogin($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setLastsend($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setAttachsize($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setAddsize($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setFlag($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setNewpm($arr[$keys[19]]);
		if (array_key_exists($keys[20], $arr)) $this->setAvatar($arr[$keys[20]]);
		if (array_key_exists($keys[21], $arr)) $this->setIp($arr[$keys[21]]);
		if (array_key_exists($keys[22], $arr)) $this->setMood($arr[$keys[22]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(UchomeSpacePeer::DATABASE_NAME);

		if ($this->isColumnModified(UchomeSpacePeer::UID)) $criteria->add(UchomeSpacePeer::UID, $this->uid);
		if ($this->isColumnModified(UchomeSpacePeer::GROUPID)) $criteria->add(UchomeSpacePeer::GROUPID, $this->groupid);
		if ($this->isColumnModified(UchomeSpacePeer::CREDIT)) $criteria->add(UchomeSpacePeer::CREDIT, $this->credit);
		if ($this->isColumnModified(UchomeSpacePeer::USERNAME)) $criteria->add(UchomeSpacePeer::USERNAME, $this->username);
		if ($this->isColumnModified(UchomeSpacePeer::NAME)) $criteria->add(UchomeSpacePeer::NAME, $this->name);
		if ($this->isColumnModified(UchomeSpacePeer::NAMESTATUS)) $criteria->add(UchomeSpacePeer::NAMESTATUS, $this->namestatus);
		if ($this->isColumnModified(UchomeSpacePeer::DOMAIN)) $criteria->add(UchomeSpacePeer::DOMAIN, $this->domain);
		if ($this->isColumnModified(UchomeSpacePeer::VIEWNUM)) $criteria->add(UchomeSpacePeer::VIEWNUM, $this->viewnum);
		if ($this->isColumnModified(UchomeSpacePeer::NOTENUM)) $criteria->add(UchomeSpacePeer::NOTENUM, $this->notenum);
		if ($this->isColumnModified(UchomeSpacePeer::FRIENDNUM)) $criteria->add(UchomeSpacePeer::FRIENDNUM, $this->friendnum);
		if ($this->isColumnModified(UchomeSpacePeer::DATELINE)) $criteria->add(UchomeSpacePeer::DATELINE, $this->dateline);
		if ($this->isColumnModified(UchomeSpacePeer::UPDATETIME)) $criteria->add(UchomeSpacePeer::UPDATETIME, $this->updatetime);
		if ($this->isColumnModified(UchomeSpacePeer::LASTSEARCH)) $criteria->add(UchomeSpacePeer::LASTSEARCH, $this->lastsearch);
		if ($this->isColumnModified(UchomeSpacePeer::LASTPOST)) $criteria->add(UchomeSpacePeer::LASTPOST, $this->lastpost);
		if ($this->isColumnModified(UchomeSpacePeer::LASTLOGIN)) $criteria->add(UchomeSpacePeer::LASTLOGIN, $this->lastlogin);
		if ($this->isColumnModified(UchomeSpacePeer::LASTSEND)) $criteria->add(UchomeSpacePeer::LASTSEND, $this->lastsend);
		if ($this->isColumnModified(UchomeSpacePeer::ATTACHSIZE)) $criteria->add(UchomeSpacePeer::ATTACHSIZE, $this->attachsize);
		if ($this->isColumnModified(UchomeSpacePeer::ADDSIZE)) $criteria->add(UchomeSpacePeer::ADDSIZE, $this->addsize);
		if ($this->isColumnModified(UchomeSpacePeer::FLAG)) $criteria->add(UchomeSpacePeer::FLAG, $this->flag);
		if ($this->isColumnModified(UchomeSpacePeer::NEWPM)) $criteria->add(UchomeSpacePeer::NEWPM, $this->newpm);
		if ($this->isColumnModified(UchomeSpacePeer::AVATAR)) $criteria->add(UchomeSpacePeer::AVATAR, $this->avatar);
		if ($this->isColumnModified(UchomeSpacePeer::IP)) $criteria->add(UchomeSpacePeer::IP, $this->ip);
		if ($this->isColumnModified(UchomeSpacePeer::MOOD)) $criteria->add(UchomeSpacePeer::MOOD, $this->mood);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(UchomeSpacePeer::DATABASE_NAME);

		$criteria->add(UchomeSpacePeer::UID, $this->uid);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getUid();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setUid($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setGroupid($this->groupid);

		$copyObj->setCredit($this->credit);

		$copyObj->setUsername($this->username);

		$copyObj->setName($this->name);

		$copyObj->setNamestatus($this->namestatus);

		$copyObj->setDomain($this->domain);

		$copyObj->setViewnum($this->viewnum);

		$copyObj->setNotenum($this->notenum);

		$copyObj->setFriendnum($this->friendnum);

		$copyObj->setDateline($this->dateline);

		$copyObj->setUpdatetime($this->updatetime);

		$copyObj->setLastsearch($this->lastsearch);

		$copyObj->setLastpost($this->lastpost);

		$copyObj->setLastlogin($this->lastlogin);

		$copyObj->setLastsend($this->lastsend);

		$copyObj->setAttachsize($this->attachsize);

		$copyObj->setAddsize($this->addsize);

		$copyObj->setFlag($this->flag);

		$copyObj->setNewpm($this->newpm);

		$copyObj->setAvatar($this->avatar);

		$copyObj->setIp($this->ip);

		$copyObj->setMood($this->mood);


		$copyObj->setNew(true);

		$copyObj->setUid(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new UchomeSpacePeer();
		}
		return self::$peer;
	}

} 